﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin_cms/admin_master.master"
    AutoEventWireup="true" CodeFile="User.aspx.cs" Inherits="admin_cms_default" EnableEventValidation="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="all_khung_form1">
        <div class="top_khung_form1">
            <h5>
                Quản lý người dùng</h5>
        </div>
        <div class="chkquyen " style="float: left; margin-left: 44px; margin-top: 3px;">
            <div class="khung_form1">
                <h3>
                    Tên đăng nhập:
                </h3>
                <asp:TextBox ID="txtuser" runat="server" class="txtform"></asp:TextBox>
            </div>
            <div class="khung_form1">
                <h3>
                    Mật khẩu:
                </h3>
                <asp:TextBox ID="txtmk" runat="server" class="txtform" TextMode="Password"></asp:TextBox>
            </div>
            <div class="khung_form1">
                <h3>
                    Họ tên(ex.. Hồ Hà):
                </h3>
                <asp:TextBox ID="txtname" runat="server" class="txtform"></asp:TextBox>
            </div>
            <div class="khung_form1">
                <h3>
                    Chọn ảnh:
                </h3>
                <asp:FileUpload ID="fileupload" class="txtform" runat="server" />
            </div>
        </div>
        <div class="khung_form1 chkquyen">
            <h3>
                Chọn nhóm người dùng:
            </h3>
            <asp:RadioButtonList ID="RadioButtonList1" runat="server" class="txtform" RepeatColumns="2">
            </asp:RadioButtonList>
        </div>
        <%-- <div class=" khung_form1 chkquyen">
            <h3>
                Chọn quyền:
            </h3>
            <asp:CheckBoxList ID="CheckBoxList1" runat="server" RepeatColumns="4">
            </asp:CheckBoxList>
            
        </div>--%>
        <div class="khung_form1">
            <asp:Button ID="Button1" runat="server" Text="Thêm mới" OnClick="User_Insert" /><asp:Button
                ID="Button2" runat="server" Text="Update" OnClick="UserUpdate" />
        </div>
    </div>
    <div class="all_khung_form3">
        <div class="griv_content">
            <asp:GridView ID="GridView1" runat="server" CssClass="mGrid" PagerStyle-CssClass="pgr"
                Font-Size="12px" AutoGenerateColumns="false" AlternatingRowStyle-BackColor="#DFE2E4"
                OnRowCommand="grv_yahoo_click">
                <Columns>
                    <asp:BoundField HeaderText=" Mã User" DataField="id" />
                    <asp:BoundField HeaderText="Nick đăng nhập" DataField="username" />
                    <asp:BoundField HeaderText="Tên người dùng" DataField="fullname" />
                </Columns>
                <Columns>
                    <asp:TemplateField HeaderText="Xóa">
                        <ItemTemplate>
                            <asp:ImageButton runat="server" ImageUrl="~/admin_cms/style/images/icons/small/grey/Acces Denied Sign.png"
                                CssClass="grivimg" ID="imgxoa" CommandArgument='<%#Eval("id") %> ' CommandName="X" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <Columns>
                    <asp:TemplateField HeaderText="Sửa">
                        <ItemTemplate>
                            <asp:ImageButton runat="server" ImageUrl="~/admin_cms/style/images/icons/small/grey/Create Write.png"
                                ID="imgsua" CommandArgument='<%#Eval("id") %> ' CommandName="S" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
    </div>
    
</asp:Content>
